package com.ldk.base.framework.datasource;

/**
 * 数据源驱动
 * @author xiangwl
 *
 */
public enum DataSourceDriver {
	/**
	 * mysql
	 */
	MYSQL("com.mysql.jdbc.jdbc2.optional.MysqlXADataSource","com.mysql.jdbc.Driver"),
	/**
	 * sqlserver
	 */
	MSSQL("com.microsoft.sqlserver.jdbc.SQLServerXADataSource","com.microsoft.sqlserver.jdbc.SQLServerDriver"),
	/**
	 * oracle
	 */
	ORACLE("oracle.jdbc.xa.OracleXAResource","oracle.jdbc.driver.OracleDriver"),
	/**
	 * postgresql
	 */
	POSTRESQL("org.postgresql.xa.PGXADataSource","org.postgresql.Driver"),
	/**
	 * db2
	 */
	DB2("com.ibm.db2.jcc.DB2XADataSource","com.ibm.db2.jcc.DB2Driver")
	;
	private DataSourceDriver(String xaDriver, String noXADriver){
		this.xaDriver = xaDriver;
		this.noXADriver = noXADriver;
	}
	
	private String xaDriver;
	private String noXADriver;
	
	public String getXaDriver() {
		return xaDriver;
	}
	public String getNoXADriver() {
		return noXADriver;
	}
	
}
